package com.yootk.client;

import java.net.Socket;
import java.util.Scanner;

public class HelloClient {
    public static void main(String[] args) throws Exception {
        Socket client = new Socket("localhost", 9999);
        Scanner scanner = new Scanner(client.getInputStream());
        if (scanner.hasNext()) {
            System.out.println(scanner.nextLine());
        }
        client.shutdownInput();
    }
}